<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>类的静态成员</title>
</head>
<body>
    <script>
        // function Phone () {
        //
        // }
        // Phone.name = `手机`;
        // Phone.change = function () {
        //     console.log(`我可以改变世界！！`);
        // }
        // Phone.prototype.size = 5.5;
        //
        // let nokia = new Phone();
        // console.log(nokia.name);
        // console.log(nokia.size);

        class Phone {
            static name = `手机`;
            static change() {
                console.log(`我可以改变世界！！`);
            }
        }
        let nokia = new Phone();
        console.log(nokia.name);
        console.log(Phone.name);
    </script>
</body>
</html>